FROM openjdk:8u342-slim

LABEL user="chris" mail="majewing@126.com" name="supreme-proxy-server" group="supreme-server"

EXPOSE 7160

ARG APP_NAME=supreme-proxy-server
ARG APP_HOME=/home/${APP_NAME}
RUN mkdir -p ${APP_HOME}

VOLUME ["${APP_HOME}/logs"]

ARG JAR_FILE=${APP_NAME}-0.0.1.jar
ADD ${JAR_FILE} ${APP_HOME}/app-server.jar

WORKDIR ${APP_HOME}

ENTRYPOINT ["java", "-jar", "app-server.jar"]
CMD ["--spring.profiles.active=proxy", "--logging.file.name=./logs/docker-proxy-server.log"]
